package com.isoft.game.sys.role.dao;

import java.util.List;

import org.apache.ibatis.annotations.ResultMap;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import com.isoft.game.sys.role.entity.Role;

import tk.mybatis.mapper.common.Mapper;

@Repository
public interface RoleRepository extends Mapper<Role>{

	@Select("select * from s_role where DEL_FLAG='0' and FLAG='1'")
	@ResultMap(value = "BaseResultMap" )
	List<Role> queryRoles(Role role);

}
